package com.sdehua.wear.controller;

import com.sdehua.wear.entity.TicketManager;
import com.sdehua.wear.service.TicketManagerService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * (TicketManager)表控制层
 *
 * @author makejava
 * @since 2022-01-03 21:11:21
 */
@RestController
@RequestMapping("ticketManager")
@CrossOrigin
public class TicketManagerController {
    /**
     * 服务对象
     */
    @Resource
    private TicketManagerService ticketManagerService;

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数据
     */
    @GetMapping("selectOne")
    public TicketManager selectOne(Integer id) {
        return this.ticketManagerService.queryById(id);
    }

}